<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if !$acct_id}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Acct_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="acctList" item="vo"}
                <option value="{$key}" {in name="key" value="1" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <!-- <input id="c-acct_id" data-rule="required" data-source="acct/index" class="form-control selectpage"
                name="row[acct_id]" type="text" value="{$row.acct_id|htmlentities}"> -->
        </div>
    </div>
    {else}
    <input id="c-acct_id" data-rule="required" class="form-control " name="row[acct_id]" type="hidden"
        value="{$acct_id|htmlentities}">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rate')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-rate" data-rule="required" class="form-control" step="0.01" name="row[rate]" type="number">
        </div>
        <div class="col-xs-12 col-sm-1">
            ~
        </div>
        <div class="col-xs-12 col-sm-3">
            <input id="c-rates" data-rule="required" class="form-control" step="0.01" name="row[rates]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>